﻿using System.Windows;

namespace Visuals.Wizard
{
    /// <summary>
    /// Interaction logic for StartWindow.xaml
    /// </summary>
    public partial class FirstStepWindow : Window
    {
        public FirstStepWindow(int dimensions)
        {
            InitializeComponent();
            numberOfDimensions.Maximum = dimensions;
            numberOfDimensions.Value = dimensions;
        }

        private void nextButton_Click(object sender, RoutedEventArgs e)
        {
            MainWindow.Object.numberOfDimensions.Value = numberOfDimensions.Value;
            SecondStepWindow secondStep = new SecondStepWindow(MainWindow.Object.useTfIdf.IsChecked == true);
            Close();
            secondStep.ShowDialog();
        }

        private void cancelButton_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
